//
//  MainController.h
//  xKey Interface
//
//  Created by Guillaume SOURDRILLE on 19/02/12.
//  Copyright (c) 2012 Edenyorke. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ListeJeuxController.h"
#import "MessageUtils.h"
#import "SettingsView.h"
#import "SettingsPopover.h"
#import "InfosPopover.h"
#import "InfosViewController.h"



@interface MainController : UIViewController<UIPopoverControllerDelegate>{
    IBOutlet UIImageView *imageView;
    IBOutlet UIImageView *gamerTag;
    NSString *ipXkey;
    IBOutlet UIButton *listeJeuxButton;
    IBOutlet UIButton *settingsButton;
    IBOutlet UIButton *donateButton;
    IBOutlet UIButton *infoButton;
    IBOutlet UILabel *version;
    IBOutlet UILabel *paypalMessage;
    IBOutlet SettingsPopover *settingsViewControllerIpad;
    UIPopoverController *popoverController;

}

@property (strong, nonatomic) ListeJeuxController *listeJeuxController;
@property (strong, nonatomic) InfosViewController *infosViewController;
@property (strong, nonatomic) SettingsView *settingsViewController;
@property (strong, nonatomic) InfosPopover *infosViewControllerIpad;
@property (nonatomic, retain) MessageUtils *messageUtils;
@property (retain,nonatomic) SettingsPopover *settingsViewControllerIpad;
- (IBAction)viewSettingsIpad:(id)sender;
- (IBAction)viewInfosIpad:(id)sender;

- (void)initParameters;
- (void)initButton;
- (void)initGamerTag;
- (IBAction) viewListeJeux;
- (IBAction)viewInfos:(id)sender;
- (IBAction)openDonate;

- (IBAction) viewSettings;
@end
